﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HA.Data
{
    [Serializable]
   public class IDWOption:ICloneable
    {

        int _nodalFunction=2;

        /// <summary>
        ///    * 0     constant  model.  Just  for  demonstration only, worst
                        //model ever.
                //* 1     linear model, least squares fitting. Simpe  model  for
                //        datasets too small for quadratic models
                //* 2     quadratic  model,  least  squares  fitting. Best model
                //        available (if your dataset is large enough).
                //* -1    "fast"  linear  model,  use  with  caution!!!   It  is
                //        significantly  faster than linear/quadratic and better
                //        than constant model. But it is less robust (especially
                //        in the presence of noise).
        /// </summary>
        public int NodalFunction
        {
            get { return _nodalFunction; }
            set { _nodalFunction = value; }
        }

        int _nq=15;

        public int Nq
        {
            get { return _nq; }
            set {
                if (value <= 0)
                {
                    return;
                }
                _nq = value; 
            }
        }

        int _nw=25;

        public int Nw
        {
            get { return _nw; }
            set {
                if (value <= 0)
                {
                    return;
                }
                _nw = value; 
            }
        }


        public object Clone()
        {
            return this.MemberwiseClone();
        }

    }
}
